# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=aide
pkgver=0.18.8
pkgrel=0
pkgdesc="file integrity checker and intrusion detection program"
url="https://aide.github.io/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	autoconf
	automake
	bison
	flex
	libgcrypt-dev
	pcre2-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/aide/aide/releases/download/v$pkgver/aide-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
38763f527cfbc11847eca2fca17eceabc46158624954f0457feb49b885f34e4311f2dbc50b5471f4ff972e9e4e9c9f55c2da8dd8d55c04063a9043ab4829ff05  aide-0.18.8.tar.gz
"
